﻿using Npoi.Mapper.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace OnLineExam.Web.Models.ExcelViewModels
{
    public abstract class BaseProblemViewModel
    {

        [Column("题目")]
        public string Title { get; set; }

        [Column("答案")]
        public string Answer { get; set; }
    }

    public class FillBlankProblemModel : BaseProblemViewModel
    {

        [Column("题目前描述")]
        public string FrontTitle { get; set; }

        [Column("题目后描述")]
        public string BackTitle { get; set; }


    }

    public class JudgeProblemModel : BaseProblemViewModel
    {

         


    }

    public class MultiProblemModel : BaseProblemViewModel
    {

        [Column(nameof(A))]
        public string A { get; set; }

        [Column(nameof(B))]
        public string B { get; set; }

        [Column(nameof(C))]
        public string C { get; set; }

        [Column(  nameof(D))]
        public string D { get; set; }

        [Column(nameof(E))]
        public string E { get; set; }

        [Column(nameof(F))]
        public string F { get; set; }

        [Column(nameof(G))]
        public string G { get; set; }
         
    }

    public class QuestionProblemModel : BaseProblemViewModel { }


    public class SingleProblemModel : BaseProblemViewModel {

        [Column(nameof(A))]
        public string A { get; set; }

        [Column(nameof(B))]
        public string B { get; set; }

        [Column(nameof(C))]
        public string C { get; set; }

        [Column(nameof(D))]
        public string D { get; set; }

    }
}